﻿using Microsoft.Extensions.Configuration;
using System;

namespace SqlSugarEncapsulation.Common
{
    public class ConfigUtil
    {
        private static IConfigurationRoot config = null;
        static ConfigUtil()
        {
            var builder = new ConfigurationBuilder()
                .AddJsonFile("appsettings.json");
            config = builder.Build();

            MySqlConnString = config["MySqlConnString"];
            SqlServerConnString = config["SqlServerConnString"];
        }

        public static string MySqlConnString { get; }

        public static string SqlServerConnString { get; }
    }
}
